package tsinghua.smxq.foodprice;

	
public class Id2Name {
	static String[] cities = new String[]{"北京",
																  "上海",
																  "天津",
																  "重庆",
																  "黑龙江",
																  "吉林",
																  "辽宁",
																  "内蒙古",
																  "河北",
																  "山西",
																  "陕西",
																  "山东",
																  "新疆",
																  "西藏"};
	static String[] foods = new String[]{"牛肉",
																 "羊肉",
																 "鸡",
																 "猪肉",
																 "鸭肉",
																 "鱼",
																 "茄子",
																 "山药",
																 "空心菜",
																 "豆芽",
																 "土豆",
																 "海带",
																 "木耳",
																 "油麦菜",
																 "烤鸭",
																 "百味鸡",
																 "卤菜",
																 "猪蹄",
																 "鸭脖"};
	public static String id2City(int cityId)
	{		
		if(cityId < 0)
		{
			cityId = 0;
		}
		if(cityId >= cities.length)
		{
			cityId = cities.length -1;
		}			
		return cities[cityId];
	}
	
	public static String id2Food(int foodId)
	{		
		if(foodId < 0)
		{
			foodId = 0;
		}
		if(foodId >= foods.length)
		{
			foodId = foods.length -1;
		}			
		return foods[foodId];
	}


}
